<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        var inum01 = 123;

        fnHehe();
        function fnHehe() {
            var inum02 = 456;//局部变量 作用范围 是这个方法内部
            console.log(inum01);
            console.log(inum02);
        }


        console.log(inum02);
    </script>
</head>

<body>



</body>

</html>